package com.cnhis.cloudhealth.clinical.clidoctor.clischemedefine.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import java.util.HashMap;
import com.cnhis.cloudhealth.commons.utils.Page;

@Repository
public class CliSchemeDefineDao extends BaseDao
{
    public List catalog()
        throws Exception
    {
        return queryForList("CliSchemeDefine.catalog", null);
    }
    
    public Page queryCatalogItem(Map map, int currPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliSchemeDefine.queryCatalogItem", map, currPage, pageSize);
    }
    
    public Page schemeDetail(Map map, int currPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliSchemeDefine.schemeDetail", map, currPage, pageSize);
    }
    
    public Page allSearch(Map map, int currPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliSchemeDefine.allSearch", map, currPage, pageSize);
    }
    
    public List queryOffice()
        throws Exception
    {
        return queryForList("CliSchemeDefine.queryOffice", null);
    }
    
    public List schemeAlias(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.schemeAlias", map);
    }
    
    public List adviceItemTree()
        throws Exception
    {
        return queryForList("CliSchemeDefine.adviceItemTree", null);
    }
    
    public Page getMedical(Map map, int currPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliSchemeDefine.getMedical", map, currPage, pageSize);
    }
    
    public Page catalogDetail(Map map, int currPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliSchemeDefine.catalogDetail", map, currPage, pageSize);
    }
    
    public String getgparam60()
        throws Exception
    {
        return (String)queryForExtObject("CliSchemeDefine.getgparam60", null);
    }
    
    public List medicalPrompt(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.medicalPrompt", map);
    }
    
    public String getSysParamValue(Map map)
        throws Exception
    {
        return (String)queryForExtObject("CliSchemeDefine.getSysParamValue", map);
    }
    
    public List getTmpBCK1(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.getTmpBCK1", map);
    }
    
    public List getTmpBCK2(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.getTmpBCK2", map);
    }
    
    public List getTmpBCK3(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.getTmpBCK3", map);
    }
    
    public List getTmpBCK4(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.getTmpBCK4", map);
    }
    
    public List fetchTreatment(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.fetchTreatment", map);
    }
    
    public List herbCommonUseList(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.herbCommonUseList", map);
    }
    
    public List findSpecialTreament(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.findSpecialTreament", map);
    }
    
    public List getHerbById(Map map)
        throws Exception
    {
        return queryForList("CliSchemeDefine.getHerbById", map);
    }
    
    public Integer checkCode(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliSchemeDefine.checkCode", map);
    }
    
    public Map getBCE02AndBCE03(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliSchemeDefine.getBCE02AndBCE03", map);
    }
    
    public Map getMaxAndMinID(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliSchemeDefine.getMaxAndMinID", map);
    }
    
    public void deleteBBX(Map map)
        throws Exception
    {
        delete("CliSchemeDefine.deleteBBX", map);
    }
    
    public void updateBBX(Map map)
        throws Exception
    {
        update("CliSchemeDefine.updateBBX", map);
    }
    
    public void insertBBX(Map map)
        throws Exception
    {
        insert("CliSchemeDefine.insertBBX", map);
    }
    
    public void insertBDK(Map map)
        throws Exception
    {
        insert("CliSchemeDefine.insertBDK", map);
    }
    
    public Integer existsBAR(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliSchemeDefine.existsBAR", map);
    }
    
    public void insertBAR(Map map)
        throws Exception
    {
        insert("CliSchemeDefine.insertBAR", map);
    }
    
    public Map getMaxAndMin(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliSchemeDefine.getMaxAndMin", map);
    }
    
    public Map getParam(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliSchemeDefine.getParam", map);
    }
    
    public Integer getlVAF59(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliSchemeDefine.getlVAF59", map);
    }
    
    public void insertBef1(Map map)
        throws Exception
    {
        insert("CliSchemeDefine.insertBef1", map);
    }
    
    public Integer existsBBX1(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliSchemeDefine.existsBBX1", map);
    }
    
    public void updateBBX1(Map map)
        throws Exception
    {
        update("CliSchemeDefine.updateBBX1", map);
    }
    
    public void deleteBBX1(Map map)
        throws Exception
    {
        delete("CliSchemeDefine.deleteBBX1", map);
    }

    public List getVaf1Bybbx01a_8(HashMap map)
        throws Exception
    {
        return this.queryForList("CliSchemeDefine.getVaf1Bybbx01a_8", map);
    }

    public List adviceSousuo(HashMap map) throws Exception
    {
        return this.queryForList("CliSchemeDefine.adviceSousuo", map);
    }

    public List getVaf1Bybbx01a_s(HashMap map) throws Exception
    {
        return this.queryForList("CliSchemeDefine.getVaf1Bybbx01a_s", map);
    }

    public List adviceSousuo_kucui(HashMap map) throws Exception
    {
        return this.queryForList("CliSchemeDefine.adviceSousuo_kucui", map);
    }
}
